<template>
  <view class="my-container">
    <!-- 登录 -->
    <my-login v-if="!token"></my-login>
    <!-- 个人中心 -->
    <my-userinfo v-else></my-userinfo>
  </view>
</template>

<script>
  import setBadge from '@/mixins/setBadge.js'
  import {
    mapState
  } from 'vuex'
  export default {
    mixins: [setBadge],
    computed:{
      ...mapState('user',['token'])
    },
    data() {
      return {

      };
    }
  }
</script>

<style lang="scss">
page,
.my-container {
  height: 100%;
}
</style>
